package org.example.support;

public final class ClassUtils {
    private ClassUtils() {
    }

    public static Class<?> toClassConfident(String name) {
        try {
            return Resources.classForName(name);
        } catch (ClassNotFoundException var4) {
            try {
                return Class.forName(name);
            } catch (ClassNotFoundException var3) {
                throw new RuntimeException("找不到指定的class！请仅在明确确定会有 class 的时候，调用该方法", var4);
            }
        }
    }
}
